import request from "@/utils/request.js"
import { LOGIN_API } from "@/api/constant.js";
import { REGIST_API } from "@/api/constant.js";


export const login = data => {
    return request({
        method: "POST",
        url: LOGIN_API,
        data,
    });
}
export const regist = data => {
    return request({
        method: "POST",
        url: REGIST_API,
        data,
    });
}